<?php
    Class DB_Connection{
        private $con;
        private $db = "alfahadInstallment";
        private $host = "localhost";
        private $username = "root";
        private $password = "";
 
        public function connect()
        {
            $this->con =  mysql_connect($this->host,$this->username,$this->password);
            if(!$this->con){
                die('Connection Error: '.mysql_error());
            }
            $db=  mysql_select_db($this->db,$this->con);
            mysql_query("SET NAMES 'utf8'");
        }
        
        public function disconnect()
        {
            mysql_close($this->con);
        }
    }    
?>
